home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / editors / DME / Config / VMake.config < prev   
Text File  |  1994-02-01  |  9KB  |  212 lines

  1. /*
  2.  * $VER: VMake.config 3.2.1 (26.1.94)
  3.  */
  4. TITLE "DICE Visual Make V3.2.1 © 1993,1994 Obvious Implementations Corp."
  5.  
  6. /* These first few TEXT items are names for buttons that*/
  7. /* have fixed functions assigned to them.               */
  8. TEXT "1"  "NEW"  /* VERY SHORT Name to fit in a short button */
  9. TEXT "2"  "DEL"
  10. TEXT "3"  "OK"
  11. TEXT "4"  "CANCEL"
  12. TEXT "5"  "Check Out from RCS"
  13. TEXT "6"  "Save Project"
  14.  
  15. TEXT "7"  "Project:"
  16. TEXT "8"  "No Current Project"
  17.  
  18. TEXT "9"  "Script is READ-ONLY.  Check out from RCS?"
  19. TEXT "10" "Unable to open file :"
  20. TEXT "11" "I/O error on file :"
  21. TEXT "12" "WARNING: File is READ-ONLY. You will not be able to change it"
  22. TEXT "13" "WARNING: This will REPLACE an existing project"
  23. TEXT "14" "WARNING: Project has been changed.  Changes will be lost"
  24. TEXT "15" "Invalid command :"
  25. TEXT "16" "Nothing is selected to operate on"
  26. TEXT "17" "Out of Memory"
  27. TEXT "18" "Invalid or missing project name"
  28. TEXT "19" "No project open, use NEW command to start one"
  29. TEXT "20" "Symbols too large for command buffer"
  30. TEXT "21" "Unable to select requested item: "
  31. TEXT "22" "Invalid or missing parameters for command"
  32. TEXT "23" "Invalid REXX Interactive mode: "
  33.  
  34. /**********************************************************
  35.  * CONFIG and SUBRTN strings may contain the following substitution symbols
  36.  * which will be expanded before the string is used.
  37.  *   %s   - Current selection     (full pathname)
  38.  *   %f   - The current DMAKEFILE (full pathname)
  39.  *   %o   - An optional selection (full pathname)
  40.  *   %t   - The object module version of a file (full pathname)
  41.  *   %r   - Relative pathname of file (as it appears in the list)
  42.  *   %n   - Name of (public) screen on which Vmake window is open
  43.  *   %%   - include one % char (literal) in the expanded string
  44.  *   %(x) - The expansion of symbol X
  45.  ***********************************************************/
  46.  
  47. /***********************************************************
  48.  * We need a set of configurations to control how VMAKE will
  49.  * invoke commands and issue operations
  50.  ***********************************************************/
  51.             /* Console for command output                                */
  52. CONFIG "1"  "CON:0/0/640/100/VMake Console/AUTO/screen %n"
  53.             /* Pattern to match against project files                    */
  54. CONFIG "2"  "(#?FILE|#?DM#AK#?|#?.DICE)"
  55.             /* Pattern to locate files to be added to a project          */
  56. CONFIG "3"  "(#?.C|#?.H|#?FILE#?)"
  57.             /* Pattern to locate configuration files                     */
  58. CONFIG "4"  "(#?.config)"
  59.             /* Default extension to add to all project files             */
  60. CONFIG "5"  ".DICE"
  61.             /* Command to execute on double click                        */
  62. CONFIG "6"  "EDIT"
  63. /* Note that the next two entries MUST consist of a single command that will  */
  64. /* be passed to EXECUTE.  Be careful if you try a REXX script here, because   */
  65. /* the REXX script will lock up if it tries to execute VMake commands.        */
  66.             /* Invoke the editor asynchronously (allow REXX interactions)*/
  67. CONFIG "7"  "RUN DME %s"
  68.             /* Command to Check out a file                               */
  69. CONFIG "8"  "CO -l %s"
  70.             /* Command to build a project                                */
  71. CONFIG "9"  "CALL 3;CALL 2"
  72.             /* Invoke the editor and wait (for project.dice file only)   */
  73. /* Must consist of a single CLI command, as with CONFIG[7] and CONFIG[8]      */
  74. CONFIG "10" "DME %s"
  75.  
  76. /***********************************************************
  77.  * User defineable routines for use with CALL to simplify button
  78.  * and menu definitions.  The available slots are numbered 1 to 12.
  79.  ***********************************************************/
  80. SUBRTN "1"  "LOG ----- Building %o -----;ADDR DICE_ERROR_PARSER CLEAR;EXEC DMake -f %f -a %t -DVMAKEPORT %(_PORT_)"
  81. SUBRTN "2"  "LOG ----- Making Project -----;ADDR DICE_ERROR_PARSER CLEAR;EXEC DMake -f %f -DVMAKEPORT %(_PORT_)"
  82. SUBRTN "3"  "LOG ----- Deleting Objects -----;ADDR DICE_ERROR_PARSER CLEAR;EXEC DMake -f %f clean -DVMAKEPORT %(_PORT_)"
  83. SUBRTN "4"  "EXEC %(EXEDIR)%(PROJECT) %(CLIARGS)"
  84. SUBRTN "5"  "EXEC DD %(EXEDIR)%(PROJECT) %(CLIARGS)"
  85.  
  86. /***********************************************************
  87.  * Here are all the menu items.
  88.  * You can have:
  89.  *   MENU "title"
  90.  *   ITEM "title" "shortcut"
  91.  *   BAR
  92.  ***********************************************************/
  93. MENU "Project"
  94.    ITEM "Open..."           "O"  "Read ?"
  95.    ITEM "New..."            "Y"  "New ?"
  96.    BAR
  97.    ITEM "Save"              "S"  "Save"
  98.    ITEM "Save As..."        "A"  "Save ?"
  99.    BAR
  100.    ITEM "CLI"               ""   "EXEC NEWSHELL CONSOLE:"
  101.    ITEM "Jump"              ""   "Jump"
  102.    ITEM "Config..."         ""   "RECFG"
  103.    BAR
  104.    ITEM "Quit"              "Q"  "Quit"
  105.  
  106. MENU "Edit"
  107.  
  108.    ITEM "Options"           "T"  "EXEC VOpts %f;read %f;"
  109.    ITEM "Edit"              "E"  "EDIT"
  110.    ITEM "Search"            "?"  "EXEC SEARCH %(SRCS) %(HDRS) ?"
  111.    ITEM "Update Revision"   ""   "EXEC UPREV %(PROJECT) %(VERSION)"
  112.    BAR
  113.    ITEM "Toggle Log"        ""   "TRACE"
  114.    BAR
  115.    ITEM "SCAN"              ""   "SCAN"
  116.    ITEM "SCAN .C"           ""   "SCAN #?.c"
  117.    ITEM "SCAN .H"           ""   "SCAN #?.h"
  118.  
  119. MENU "RCS"
  120.    ITEM "Show Locked"       "/"  "LOG ----- LOCKED FILES -----;EXEC RLOG -L -R %(SRCS) %(HDRS) %(DMAKEFILE)"
  121.    ITEM "Check In"          "I"  "EXEC RUN >NIL: MAKEDIR >NIL: RCS;EXEC CI -u %s;FRONT"
  122.    ITEM "Check Out (LOCK)"  "K"  "EXEC CO -l %s;FRONT"
  123.    ITEM "Refresh"           ""   "EXEC CO %s;FRONT"
  124.    BAR
  125.    ITEM "History"           ""   "LOG ----- History for %s -----;EXEC RLOG %s"
  126.    ITEM "Difference"        ""   "LOG ----- Changes in %s -----;EXEC RCSDIFF %s"
  127.  
  128. MENU "Run"
  129.    ITEM "Run (CLI)"         "R"  "CALL 4"
  130.    ITEM "Run (Workbench)"   ""   "EXEC WBRUN %(EXEDIR)%(PROJECT)"
  131.    ITEM "Debug"             "D"  "CALL 5"
  132.  
  133. MENU "Compile"
  134.    ITEM "Compile Selected"  "C"  "CALL 1;FRONT"
  135.    ITEM "Make"              "M"  "CALL 2;FRONT"
  136.    ITEM "Link"              "L"  "LOG ----- Linking -----;EXEC DMake -f %f relink -DVMAKEPORT %(_PORT_);FRONT"
  137.    ITEM "Build All"         "B"  "CALL 3;CALL 2;FRONT"
  138.  
  139. MENU "List"
  140.    ITEM "Top"               "<"   "LTOP"
  141.    ITEM "Bottom"            ">"   "LBOT"
  142.    BAR
  143.    ITEM "Down"              "."   "LDN"
  144.    ITEM "Up"                ","   "LUP"
  145.    BAR
  146.    ITEM "Add"               ""    "ADD"
  147.    ITEM "Delete"            ""    "DEL"
  148.    ITEM "Select"            ""    "SELECT"
  149. /* Note: ADD and SELECT can take a name as a parameter, DEL takes no parameter */
  150.  
  151. MENU "Test"
  152.       /* example: how to invoke a rexx script (passes %s as a parameter) */
  153.    ITEM "Rexx"        ""    "ADDR REXX your.rexx %s"
  154.       /* example: how to use LOG to investigate VMake */
  155.    ITEM "Logit"       ""    "LOG Port = %(_PORT_), Selection = %s"
  156. /***********************************************************
  157.  * These are the gadgets that appear on the left side of the
  158.  * Window.  The following gadget types are supported
  159.  *   CYCLE "title"  followed by a series of
  160.  *      VALUE "title" "option"
  161.  *   CHECK "title"  "no-option" "option"
  162.  *   LIST "title" "option"
  163.  *   STRING "title" "option"
  164.  * If the option string has a %s in it, it indicates that
  165.  * substitution is to occur in that option.  When such a thing
  166.  * occurs within a VALUE for a CYCLE, then a string requester
  167.  * is to be part of the cycle button for that value.
  168.  * The first VALUE in a CYCLE is the default.
  169.  *
  170.  * Due to size constraints, you can expect to get about 10
  171.  * gadgets here.
  172.  ***********************************************************/
  173.  
  174. LIST "Project Files (.c, .a, .h, ...)"       "Files"
  175.  
  176. CYCLE "Source Directory:"
  177.    VALUE "Same as Script"        "DIR"
  178.    VALUE "Other:"                "DIR %20s"
  179.  
  180. CYCLE "Path to Executable"
  181.    VALUE "Source Directory"      "EXEDIR"
  182.    VALUE "RAM:"                  "EXEDIR RAM:"
  183.    VALUE "Other:"                "EXEDIR %20s"
  184.  
  185. CYCLE "Object Files:"
  186.    VALUE "Source Directory"      "OD"
  187.    VALUE "DTMP:"                 "OD DTMP:"
  188.    VALUE "Other:"                "OD %20s"
  189.  
  190. CYCLE "Precompiled Header:"
  191.    VALUE "None"                  "PRECOMP"
  192.    VALUE "Default"               "PRECOMP $(PDEFAULT)"
  193.    VALUE "Special:"              "PRECOMP %20s"
  194.  
  195. CYCLE "Project Type:"
  196.    VALUE "Workbench/CLI"         "TYPE Normal"
  197.    VALUE "Library"               "TYPE Library"
  198.    VALUE "Device"                "TYPE Device"
  199.    VALUE "Printer Driver"        "TYPE PrinterDriver"
  200.    VALUE "Custom"                "TYPE %20s"
  201.  
  202. STRING "CLI Arguments:"          "CLIARGS"
  203.  
  204. /***************************************************
  205.  *
  206.  ***************************************************/
  207. BUTTON "Make"     "CALL 2;FRONT"
  208. BUTTON "Compile"  "CALL 1;FRONT"
  209. BUTTON "Run"      "CALL 2;CALL 4;FRONT"
  210. BUTTON "Edit"     "EDIT"
  211. BUTTON "Diff"     "LOG ----- Changes in %s -----;EXEC RCSDIFF %s"
  212.